#include "main.h"

static const char *TAG = "blinker";


static void data_callback(const char *data)
{
    ESP_LOGI(TAG, "data: %s", data);
}

int init = 0;
int isInit(){
    return init;
}

void app_main()
{

    ledFlash();
    blinker_init();
    initAdc();
    blinker_widget_add(BUTTON_LED, BLINKER_SWITCH, led_callback);
    blinker_widget_add(BUTTON_SLIDE, BLINKER_SLIDER, slide_callback);
    blinker_widget_add(BUTTON_LIGHT, BLINKER_SWITCH, light_callback);
    blinker_dueros_handler_register(duer_callback);

    init = 1;
    printf("blinker_init");

    beginSleep();
}
